package service.warehouse;

import java.util.List;

import persistence.warehouse.WarehouseDao;

import dao.Warehouse;

public class WarehouseDaoService implements WarehouseService {

	private WarehouseDao dao;

	@Override
	public void deleteWarehouse(Integer id) {
		dao.deleteWarehouse(id);

	}

	@Override
	public List<Warehouse> getAllWarehouse() {
		return dao.getAllWarehouse();
	}

	@Override
	public Warehouse getWarehouse(Integer id) {
		return dao.getWarehouse(id);
	}

	@Override
	public void insertWarehouse(Warehouse ware) {
		dao.insertWarehouse(ware);

	}

	@Override
	public void updateWarehouse(Warehouse ware) {
		dao.updateWarehouse(ware);
	}

}
